// q.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
using namespace std;
bool poop = true;
int _tmain(int argc, _TCHAR* argv[])
{
	double fint; 
	double sint; 
	char op;
	char go;
	while (poop){
	cout << "Insert the first number.\n";
	cin >> fint;
	cout << "Insert the second number.\n";
	cin >> sint;
	cout << "What operation would you like to do?\n";
	cin >> op;
	if (op == '+') {
		cout << fint+sint;
	}else if (op == '-') {
		cout << fint-sint;
	}else if (op == '*') {
		cout << fint*sint;
	}else if (op == '/') {
		cout << fint/sint;
	}
	cout << " \n";
	cout << "Would you like to do another calculation? (y/n)\n";
	cin >> go;
		if (go == 'y') {
		}
		else if (go == 'n') {
			poop = false;
		}
	}
	system("PAUSE");
	return 0;
}